class CreateKechengs < ActiveRecord::Migration
  def self.up
    create_table :dagangs do |t|
      t.string :dgnr
      t.string :dgbt
      t.integer :kecheng_id
      t.timestamps
    end
    create_table :rilis do |t|
      t.string :rlnr
      t.string :rlbt
      t.integer :kecheng_id
      t.timestamps
    end
    create_table :kechengs do |t|
      t.string :kcm,:kcjs
      t.string :rkjs
      t.date :tjsj
      
      t.timestamps
    end
  end

  def self.down
    drop_table :kechengs
    drop_table :rilis
    drop_table :dagangs
  end
end
